DEFINITION MODULE M2Conv;

(*	
	1/ 9/89 LGM : Based on SmallIO Module from HiSoft.    
*)


PROCEDURE ConvToInt( s : ARRAY OF CHAR; ) : INTEGER;
PROCEDURE ConvToLongint( s : ARRAY OF CHAR; ) : LONGINT;

	(*Conv an integer value 
	 Number may have leading sign
	 Leading blanks, line separators and tabs are ignored
	 A non-numeric terminates*)

PROCEDURE ConvToCard( s : ARRAY OF CHAR; ) : CARDINAL;
PROCEDURE ConvToLongcard( s : ARRAY OF CHAR; ) : LONGCARD;

	(*Conv a cardinal*)


PROCEDURE IntToString( x : LONGINT; places : CARDINAL;
		       VAR s : ARRAY OF CHAR; );

	(*Write x in at least places places 
	 number is right justified. If more spaces are required
	 than there are places, the field is expanded. In this
	 case, there are no leading blanks*)

PROCEDURE CardToString( x : LONGCARD; places:CARDINAL; 
                        VAR s : ARRAY OF CHAR; );

PROCEDURE CardToHexString( c:LONGCARD; places:CARDINAL;
			   VAR s : ARRAY OF CHAR );

PROCEDURE CardToOctString( x:LONGCARD; places:CARDINAL;
			   VAR s  :ARRAY OF CHAR );

	(*Other cardinaloutput routines. To write an integer in hex, use
	 WriteHex(Cardinal(integervalue),4 (*say*)); -1 will print as FFFF*)

	(*See the module RealInOut for Real number IO*)


END M2Conv. 
